package com.wsm.common.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @name: DuplicateSubmitToken
 * @Author: wangshimin
 * @Date: 2020/2/8  16:12
 * @Description:防止表单重复提交注解
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface DuplicateSubmitToken {
    /**
     * 保存重复提交标记 默认为需要保存
     */
    boolean save() default true;

    long expire() default 1L;

    TimeUnit time() default TimeUnit.MINUTES;
}